package library.operation;
import library.Book;
import library.BookList;

public class ListOperation implements IOperation{
    @Override
    public void work(BookList bookList) {
        //把书籍信息打印出来
        System.out.println("书籍信息如下：");
        for(int i=0;i<bookList.getSize();i++){
            Book book = bookList.getBook(i);
            System.out.println("【"+i+"】"+book);
        }

    }
}
